package xcmg.device.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import xcmg.device.dao.entity.PubMaterialsDO;

import java.util.List;

@Mapper
public interface PubMaterialsMapper {
    int deleteByPrimaryKey(Long materialsNo);

    int insert(PubMaterialsDO record);

    int insertSelective(PubMaterialsDO record);

    PubMaterialsDO selectByPrimaryKey(Long materialsNo);

    int updateByPrimaryKeySelective(PubMaterialsDO record);

    int updateByPrimaryKey(PubMaterialsDO record);

    //根据零件号查询零件本地化表中是否有数据
    int countMaterialsLocal(String materialsNo);

    //更新零件本地化表中的数据
    int updateMaterialsLocal(PubMaterialsDO record);

    //插入数据到零件本地化表中
    int insertMaterialsLocal(PubMaterialsDO record);

    //根据零件号查询英文描述
    List<PubMaterialsDO> selectByMaterialsNos(List<String> materialsNos);

    PubMaterialsDO itemByMaterialsNo(String materialsNo);
}